﻿{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
	
{block name="css"}
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
  	<!-- s面包屑导航 -->
  	{include file="../breadcrum_nav.html"}
  	<!-- e面包屑导航 -->
    <!-- s分类 -->
    <div class="col-left">
    {include file="../common_personal_nav.html"}
	</div>	
    <!-- e分类 -->
    <!-- s主内容 -->
    <div class="col-main">
		{include file="../common_personal_header.html"}
		<div class="user-main">
			<!-- s换购详情 -->
			<div class="mb10">
                <span>积分换购编码：<span class="red">{$integral_info.exchange_record_sn}</span></span>	
                <span>下单时间：<span class="red">{$integral_info.addtime|date_format:"%Y-%m-%d %H:%M:%S"}</span></span>	
			</div>
			<!-- s收货管理 -->
			<table class="table table-bordered table-condensed">
				<thead>
					<tr>
						<th>收货管理</th>
					</tr>
				</thead>
		        <tbody>
		          <tr>
		            <td class="dark_yellow">收货人姓名：</td>
                    <td>{$user_address_info.realname}</td>
		            <td class="dark_yellow">收货人Email:</td>
                    {if isset($email)}
                    <td>{$email}</td>
                    {else}
		            <td>--</td>
                    {/if}
		          </tr>
		          <tr>
		            <td class="dark_yellow">收货地址：</td>
                    <td>{$address}</td>
		            <td class="dark_yellow">手机：</td>
                    <td>{$user_address_info.mobile}</td>
		          </tr>
		          <tr>
		            <td class="dark_yellow">订单留言：</td>
		            <td>积分兑换商品</td>
                    <td></td>
                    <td></td>
		          </tr>
		        </tbody>
		      </table>
				<!-- e收货管理 -->
				<!-- s兑换的商品 -->
			<table class="table table-bordered table-striped">
				<thead>
					<tr>
						<th>兑换的商品</th>
					</tr>
				</thead>
				<thead>
					<tr>
						<th>序号</th>
						<th>兑换商品</th>
						<th>数量</th>
						<th>积分</th>
						<th>合计</th>
					</tr>
				</thead>
		        <tbody>
                {foreach from=$item_list item=item name=name}
		          <tr>
                    <td>{$smarty.foreach.name.iteration}</td>  
                    <td>{$item.item_name}</a></td>
                    <td>{$item.number}</td>
		            <td class="daily_price">{$item.real_price|string_format:"%d"}</td>
                    <td class="daily_total">{$item.real_price * $item.number}</td>
		          </tr>
                {foreachelse}   
                    <tr>
                        <td colspan="7">
                            没有符合条件的商品
                        </td>
                    <tr>
                {/foreach}
		        </tbody>
		      </table>
				<!-- e兑换的商品 -->

		     
		      <!-- e换购详情 -->
		</div>
	</div>
	<div class="clearfix"></div>
    <!-- e主内容 -->
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
{/block}
